<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<f:view>

	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>GCI: Base Conhecimento</title>
		<link rel="shortcut icon"
			href="#{request.contextPath}/images/favicon.ico" type="image/x-icon" />
		<style type="text/css">
.ui-widget,.ui-widget .ui-widget {
	font-size: 11px !important;
}

.ui-layout,.ui-layout-doc,.ui-layout-unit,.ui-layout-wrap,.ui-layout-bd,.ui-layout-hd
	{
	border: none !important;
}

#leftPanel {
	z-index: 2 !important;
}

#leftPanel div {
	overflow: visible;
}
</style>
	</h:head>
	<h:body>

		<ui:insert name="header">
			<h:form>
				<h:panelGrid width="100%" style="text-align:right;"
					collapsible="true" gutter="0" rendered="#{loginBean.logado}">
					<p:outputLabel style="font-size:12px;" value="#{loginBean.usuarioLogado}"> | 
										<p:commandLink actionListener="#{loginBean.deslogar}"
							immediate="true">
							<h:outputText value="Logout" />
						</p:commandLink>
					</p:outputLabel>
				</h:panelGrid>
			</h:form>
			<p:commandLink action="/pages/principal.jsf" immediate="true">
				<img src="#{request.contextPath}/images/logo.png" />
			</p:commandLink>


			<ui:insert name="menu">
				<div id="menu">
					<h:form>
					<p:menubar model="#{menuBean.model}" rendered="#{loginBean.logado}"/>
					</h:form>
				</div>
			</ui:insert>

			<img src="#{request.contextPath}/images/line.png" height="4px"
				width="100%" />
		</ui:insert>

		<br />
		<br />		

		<ui:insert name="content">
		</ui:insert>
	
		<br />
		<br />

		<ui:insert name="footer">
			<h:panelGrid width="100%"
				style="text-align:center; background-color: #D8D8D8; font-size:14px;"
				collapsible="true" gutter="0">
				<p:outputLabel styleClass="center">Todos os direitos reservados ® TCC Anhembi - 2013.</p:outputLabel>
				<p:outputLabel>Desenvolvido por Bruno Giannella de Melo
			</p:outputLabel>
			</h:panelGrid>
		</ui:insert>

	</h:body>

</f:view>
</html>